import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../pages/Home'
import Login from '../pages/Login'
import Register from '../pages/Register'
import Search from '../pages/Search'
import Test from '../pages/Test'

Vue.use(VueRouter)

export default new VueRouter({
	mode:'history',
	routes:[
		{
			path:'/home',
			component:Home
		},
		{
			path:'/login',
			component:Login
		},
		{
			path:'/register',
			component:Register
		},
		{
			path:'/search',
			component:Search
		},
		{
			path:'/test',
			component:Test
		},
		{
			path:'/',
			redirect:'/home'
		}
	]
})